﻿using _1_Interfaces.Interfaces.Cjw;
using _1_Interfaces.Models.Tables.Cjw;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace _3_Controllers.Controllers.Cjw
{
    /// <summary>
    /// 职位管理
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class CjwPositionController : ControllerBase
    {
        private IPositionService _positionService;
        public CjwPositionController(IPositionService positionService)
        {
            _positionService = positionService;
        }

        /// <summary>
        /// 获取职位表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<PositionList> GetPositionList()
        {
            return _positionService.GetPositionList();
        }
    }
}
